package com.example;

import android.content.Context;
import android.support.multidex.MultiDex;

import com.squareup.leakcanary.LeakCanary;

import cc.vv.lkbasecomponent.base.app.LKBaseApplication;

/**
 * Created by sun.li on 2018/6/6.
 *
 * @author sun.li
 */

public class BaseNewApplication extends LKBaseApplication{

    @Override
    public void onCreate() {
        super.onCreate();

        //初始化LeakCanary
//        if (LeakCanary.isInAnalyzerProcess(this)) {
//            return;
//        }
        LeakCanary.install(this);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
}
